<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 400px;
            height: 400px;
            border: 1px solid #000;
            margin: 0 auto;
        }

        .box ul {
            list-style: none;
        }

        .box ul li {
            position: relative;
            float: left;
            width: 100px;
            height: 50px;
            transition: all 1s;
            /* 立体3d */
            transform-style: preserve-3d;

        }

        .box li a {
            position: absolute;
            left: 0;
            top: 0;
            text-align: center;
            line-height: 50px;
            display: block;
            width: 100px;
            height: 50px;
            text-decoration: none;
        }

        .box li a:first-child {
            background-color: aqua;
            transform: translateZ(25px);

        }

        .box li a:last-child {
            background-color: pink;
            transform: rotateX(90deg) translateZ(20px);
        }

        .box li:hover {
            transform: rotateX(-90deg);
        }
    </style>
</head>

<body>
    <div class="box">
        <ul>
            <li>
                <a href="#">首页</a>
                <a href="#">SHYE</a>
            </li>
            <li>
                <a href="#">登录</a>
                <a href="#">DELU</a>
            </li>
            <li>
                <a href="#">注册</a>
                <a href="#">ZHCE</a>
            </li>
        </ul>
    </div>
</body>

</html>